<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title><?php if(isset($title)){echo $title;} ?> - message</title>
    <link rel="stylesheet" href="<?php echo base_url("static/style.css");?>" />
</head>
<body>
<h1><?php if(isset($title)){echo $title;} ?> - message</h1>

<?php if (isset($error)) { ?>
    <div class="fc_red">
        <strong>错误信息：</strong>
        <?php echo $error; ?>
    </div>
<?php } ?>

<ul class="nav">
    <li><a href="<?php echo site_url(); ?>">列表</a></li>
    <li><a href="<?php echo site_url("message/add"); ?>">添加</a></li>
    <li><a href="<?php echo site_url("user"); ?>">登录</a></li>
    <li><a href="<?php echo site_url("user/reg"); ?>">注册</a></li>
    <!--    <li><a href="--><?php //echo SITE_URL; ?><!--index.php/message/edit">编辑</a></li>-->
</ul>
